package cloud.xiguapi.ubas.exceptions;

import cloud.xiguapi.ubas.common.constant.IErrorCode;

/**
 * 断言处理类，用于抛出各种API异常
 *
 * @author 大大大西西瓜皮🍉
 * date: 2021-5-19 下午 06:54
 * desc:
 */
public class ExceptionAsserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
